package com.nulldev.util.web.nTube.nPlayer;

import com.nulldev.util.web.HttpServer3.HttpServer3;
import com.nulldev.util.web.HttpServer3.SSLBehaviour;
import com.nulldev.util.web.HttpServer3.pages.v3.HttpPage3.CachingMethod;
import com.nulldev.util.web.nTube.resources.NewUIRoot;

public class nMuxerTestingServer {

	public static void main(String[] args) throws Exception {
		final HttpServer3 hs3 = new HttpServer3(9000, true, SSLBehaviour.DISABLED, null);
		hs3.flags().requests_enable_byte_ranges = true;
		hs3.addDynamicAssetBytes("/", nMuxerTestingServer.class, "nMuxer_demo.html", CachingMethod.NO_CACHE);
		hs3.addDynamicAssetBytes("nMuxer.js", nMuxerTestingServer.class, "nMuxer.js", CachingMethod.NO_CACHE);
		hs3.addDynamicAssetBytes("/resources/base.js", NewUIRoot.class, "base.js", CachingMethod.NO_CACHE);
		hs3.addDynamicAssetBytes("nmuxer_audio.opus", nMuxerTestingServer.class, "nmuxer_audio.opus", CachingMethod.NO_CACHE);
		hs3.addDynamicAssetBytes("nmuxer_video.mp4", nMuxerTestingServer.class, "nmuxer_video.mp4", CachingMethod.NO_CACHE);
	}

}
